Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/public/js/bundle/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["detail_purchase"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=script&lang=js&":
/*!**************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=script&lang=js& ***!
\**************************************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var nprogress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! nprogress */ "./node_modules/nprogress/nprogress.js");
/* harmony import */ var nprogress__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(nprogress__WEBPACK_IMPORTED_MODULE_0__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
computed: (0,vuex__WEBPACK_IMPORTED_MODULE_1__.mapGetters)(["currentUserPermissions", "currentUser"]),
metaInfo: {
title: "Detail Purchase"
},
data: function data() {
return {
isLoading: true,
purchase: {},
details: [],
variants: [],
company: {},
email: {
to: "",
subject: "",
message: "",
supplier_name: "",
Purchase_Ref: ""
}
};
},
methods: {
//----------------------------------- print Purchase -------------------------\\
Print_Purchase_PDF: function Print_Purchase_PDF() {
var _this = this;
// Start the progress bar.
nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
var id = this.$route.params.id;
axios.get("Purchase_PDF/".concat(id), {
responseType: "blob",
// important
headers: {
"Content-Type": "application/json"
}
}).then(function (response) {
var url = window.URL.createObjectURL(new Blob([response.data]));
var link = document.createElement("a");
link.href = url;
link.setAttribute("download", "purchase_" + _this.purchase.Ref + ".pdf");
document.body.appendChild(link);
link.click(); // Complete the animation of the progress bar.
setTimeout(function () {
return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
}, 500);
})["catch"](function () {
// Complete the animation of the progress bar.
setTimeout(function () {
return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
}, 500);
});
},
//------------------------------ Print -------------------------\\
print: function print() {
this.$htmlToPaper('print_Invoice', {
styles: ["/frontend_assets/css/bootstrap.min.css"]
});
},
//------------------------------Formetted Numbers -------------------------\\
formatNumber: function formatNumber(number, dec) {
var value = (typeof number === "string" ? number : number.toString()).split(".");
if (dec <= 0) return value[0];
var formated = value[1] || "";
if (formated.length > dec) return "".concat(value[0], ".").concat(formated.substr(0, dec));
while (formated.length < dec) {
formated += "0";
}
return "".concat(value[0], ".").concat(formated);
},
//----------------------------------- Get Details Purchase ------------------------------\\
Get_Details: function Get_Details() {
var _this2 = this;
var id = this.$route.params.id;
axios.get("purchases/".concat(id)).then(function (response) {
_this2.purchase = response.data.purchase;
_this2.details = response.data.details;
_this2.company = response.data.company;
_this2.isLoading = false;
})["catch"](function (response) {
setTimeout(function () {
_this2.isLoading = false;
}, 500);
});
},
//---------------------------------------------------- Purchase Email -------------------------------\\
purchase_Email: function purchase_Email(purchase) {
this.email.to = this.purchase.supplier_email;
this.email.Purchase_Ref = this.purchase.Ref;
this.email.supplier_name = this.purchase.supplier_name;
this.Send_Email();
},
//--------------------------------------------- Send Purchase to Email -------------------------------\\
Send_Email: function Send_Email() {
var _this3 = this;
// Start the progress bar.
nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
var id = this.$route.params.id;
axios.post("purchases/send/email", {
id: id,
to: this.email.to,
supplier_name: this.email.supplier_name,
Ref: this.email.Purchase_Ref
}).then(function (response) {
// Complete the animation of the progress bar.
setTimeout(function () {
return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
}, 500);
_this3.makeToast("success", _this3.$t("Send.TitleEmail"), _this3.$t("Success"));
})["catch"](function (error) {
// Complete the animation of the progress bar.
setTimeout(function () {
return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
}, 500);
_this3.makeToast("danger", _this3.$t("SMTPIncorrect"), _this3.$t("Failed"));
});
},
//---------SMS notification
Purchase_SMS: function Purchase_SMS() {
var _this4 = this;
// Start the progress bar.
nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
var id = this.$route.params.id;
axios.post("purchases/send/sms", {
id: id
}).then(function (response) {
// Complete the animation of the progress bar.
setTimeout(function () {
return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
}, 500);
_this4.makeToast("success", _this4.$t("Send_SMS"), _this4.$t("Success"));
})["catch"](function (error) {
// Complete the animation of the progress bar.
setTimeout(function () {
return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
}, 500);
_this4.makeToast("danger", _this4.$t("sms_config_invalid"), _this4.$t("Failed"));
});
},
//------ Toast
makeToast: function makeToast(variant, msg, title) {
this.$root.$bvToast.toast(msg, {
title: title,
variant: variant,
solid: true
});
},
//------- Remove Purchase
Delete_Purchase: function Delete_Purchase() {
var _this5 = this;
var id = this.$route.params.id;
this.$swal({
title: this.$t("Delete.Title"),
text: this.$t("Delete.Text"),
type: "warning",
showCancelButton: true,
confirmButtonColor: "#3085d6",
cancelButtonColor: "#d33",
cancelButtonText: this.$t("Delete.cancelButtonText"),
confirmButtonText: this.$t("Delete.confirmButtonText")
}).then(function (result) {
if (result.value) {
axios["delete"]("purchases/" + id).then(function () {
_this5.$swal(_this5.$t("Delete.Deleted"), _this5.$t("Delete.PurchaseDeleted"), "success");
_this5.$router.push({
name: "index_purchases"
});
})["catch"](function () {
_this5.$swal(_this5.$t("Delete.Failed"), _this5.$t("Delete.Therewassomethingwronge"), "warning");
});
}
});
}
},
//end Methods
//----------------------------- Created function-------------------
created: function created() {
this.Get_Details();
}
});
/***/ }),
/***/ "./resources/src/views/app/pages/purchases/detail_purchase.vue":
/*!*********************************************************************!*\
!*** ./resources/src/views/app/pages/purchases/detail_purchase.vue ***!
\*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _detail_purchase_vue_vue_type_template_id_76712cb6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detail_purchase.vue?vue&type=template&id=76712cb6& */ "./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=template&id=76712cb6&");
/* harmony import */ var _detail_purchase_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./detail_purchase.vue?vue&type=script&lang=js& */ "./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=script&lang=js&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
;
var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_detail_purchase_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_detail_purchase_vue_vue_type_template_id_76712cb6___WEBPACK_IMPORTED_MODULE_0__.render,
_detail_purchase_vue_vue_type_template_id_76712cb6___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/src/views/app/pages/purchases/detail_purchase.vue"
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);
/***/ }),
/***/ "./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=script&lang=js&":
/*!**********************************************************************************************!*\
!*** ./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=script&lang=js& ***!
\**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_purchase_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail_purchase.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=script&lang=js&");
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_purchase_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=template&id=76712cb6&":
/*!****************************************************************************************************!*\
!*** ./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=template&id=76712cb6& ***!
\****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_purchase_vue_vue_type_template_id_76712cb6___WEBPACK_IMPORTED_MODULE_0__.render),
/* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_purchase_vue_vue_type_template_id_76712cb6___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns)
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_purchase_vue_vue_type_template_id_76712cb6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail_purchase.vue?vue&type=template&id=76712cb6& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=template&id=76712cb6&");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=template&id=76712cb6&":
/*!*******************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/purchases/detail_purchase.vue?vue&type=template&id=76712cb6& ***!
\*******************************************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": () => (/* binding */ render),
/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns)
/* harmony export */ });
var render = function () {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ staticClass: "main-content" },
[
_c("breadcumb", {
attrs: {
page: _vm.$t("PurchaseDetail"),
folder: _vm.$t("ListPurchases"),
},
}),
_vm._v(" "),
_vm.isLoading
? _c("div", {
staticClass: "loading_page spinner spinner-primary mr-3",
})
: _vm._e(),
_vm._v(" "),
!_vm.isLoading
? _c(
"b-card",
[
_c(
"b-row",
[
_c(
"b-col",
{ staticClass: "mb-2", attrs: { md: "12" } },
[
_vm.currentUserPermissions &&
_vm.currentUserPermissions.includes("Purchases_edit")
? _c(
"router-link",
{
staticClass:
"btn btn-success btn-icon ripple btn-sm",
attrs: {
title: "Edit",
to: {
name: "edit_purchase",
params: { id: _vm.$route.params.id },
},
},
},
[
_c("i", { staticClass: "i-Edit" }),
_vm._v(" "),
_c("span", [
_vm._v(_vm._s(_vm.$t("EditPurchase"))),
]),
]
)
: _vm._e(),
_vm._v(" "),
_c(
"button",
{
staticClass: "btn btn-info btn-icon ripple btn-sm",
on: {
click: function ($event) {
return _vm.purchase_Email()
},
},
},
[
_c("i", { staticClass: "i-Envelope-2" }),
_vm._v(
"\n " +
_vm._s(_vm.$t("Email")) +
"\n "
),
]
),
_vm._v(" "),
_c(
"button",
{
staticClass:
"btn btn-secondary btn-icon ripple btn-sm",
on: {
click: function ($event) {
return _vm.Purchase_SMS()
},
},
},
[
_c("i", { staticClass: "i-Speach-Bubble" }),
_vm._v("\n SMS\n "),
]
),
_vm._v(" "),
_c(
"button",
{
staticClass: "btn btn-primary btn-icon ripple btn-sm",
on: {
click: function ($event) {
return _vm.Print_Purchase_PDF()
},
},
},
[
_c("i", { staticClass: "i-File-TXT" }),
_vm._v(" PDF\n "),
]
),
_vm._v(" "),
_c(
"button",
{
staticClass: "btn btn-warning btn-icon ripple btn-sm",
on: {
click: function ($event) {
return _vm.print()
},
},
},
[
_c("i", { staticClass: "i-Billing" }),
_vm._v(
"\n " +
_vm._s(_vm.$t("print")) +
"\n "
),
]
),
_vm._v(" "),
_vm.currentUserPermissions &&
_vm.currentUserPermissions.includes("Purchases_delete")
? _c(
"button",
{
staticClass:
"btn btn-danger btn-icon ripple btn-sm",
on: {
click: function ($event) {
return _vm.Delete_Purchase()
},
},
},
[
_c("i", { staticClass: "i-Close-Window" }),
_vm._v(
"\n " +
_vm._s(_vm.$t("Del")) +
"\n "
),
]
)
: _vm._e(),
],
1
),
],
1
),
_vm._v(" "),
_c(
"div",
{ staticClass: "invoice mt-5", attrs: { id: "print_Invoice" } },
[
_c(
"div",
{ staticClass: "invoice-print" },
[
_c(
"b-row",
{ staticClass: "justify-content-md-center" },
[
_c("h4", { staticClass: "font-weight-bold" }, [
_vm._v(
_vm._s(_vm.$t("PurchaseDetail")) +
" : " +
_vm._s(_vm.purchase.Ref)
),
]),
]
),
_vm._v(" "),
_c("hr"),
_vm._v(" "),
_c(
"b-row",
{ staticClass: "mt-5" },
[
_c(
"b-col",
{
staticClass: "mb-4",
attrs: { lg: "4", md: "4", sm: "12" },
},
[
_c("h5", { staticClass: "font-weight-bold" }, [
_vm._v(_vm._s(_vm.$t("Supplier_Info"))),
]),
_vm._v(" "),
_c("div", [
_vm._v(_vm._s(_vm.purchase.supplier_name)),
]),
_vm._v(" "),
_c("div", [
_vm._v(_vm._s(_vm.purchase.supplier_email)),
]),
_vm._v(" "),
_c("div", [
_vm._v(_vm._s(_vm.purchase.supplier_phone)),
]),
_vm._v(" "),
_c("div", [
_vm._v(_vm._s(_vm.purchase.supplier_adr)),
]),
]
),
_vm._v(" "),
_c(
"b-col",
{
staticClass: "mb-4",
attrs: { lg: "4", md: "4", sm: "12" },
},
[
_c("h5", { staticClass: "font-weight-bold" }, [
_vm._v(_vm._s(_vm.$t("Company_Info"))),
]),
_vm._v(" "),
_c("div", [
_vm._v(_vm._s(_vm.company.CompanyName)),
]),
_vm._v(" "),
_c("div", [_vm._v(_vm._s(_vm.company.email))]),
_vm._v(" "),
_c("div", [
_vm._v(_vm._s(_vm.company.CompanyPhone)),
]),
_vm._v(" "),
_c("div", [
_vm._v(_vm._s(_vm.company.CompanyAdress)),
]),
]
),
_vm._v(" "),
_c(
"b-col",
{
staticClass: "mb-4",
attrs: { lg: "4", md: "4", sm: "12" },
},
[
_c("h5", { staticClass: "font-weight-bold" }, [
_vm._v(_vm._s(_vm.$t("Purchase_Info"))),
]),
_vm._v(" "),
_c("div", [
_vm._v(
_vm._s(_vm.$t("Reference")) +
" : " +
_vm._s(_vm.purchase.Ref)
),
]),
_vm._v(" "),
_c("div", [
_vm._v(
"\n " +
_vm._s(_vm.$t("Status")) +
" :\n "
),
_vm.purchase.statut == "received"
? _c(
"span",
{
staticClass:
"badge badge-outline-success",
},
[_vm._v(_vm._s(_vm.$t("Received")))]
)
: _vm.purchase.statut == "pending"
? _c(
"span",
{
staticClass: "badge badge-outline-info",
},
[_vm._v(_vm._s(_vm.$t("Pending")))]
)
: _c(
"span",
{
staticClass:
"badge badge-outline-warning",
},
[_vm._v(_vm._s(_vm.$t("Ordered")))]
),
]),
_vm._v(" "),
_c("div", [
_vm._v(
_vm._s(_vm.$t("warehouse")) +
" : " +
_vm._s(_vm.purchase.warehouse)
),
]),
_vm._v(" "),
_c("div", [
_vm._v(
"\n " +
_vm._s(_vm.$t("PaymentStatus")) +
" :\n "
),
_vm.purchase.payment_status == "paid"
? _c(
"span",
{
staticClass:
"badge badge-outline-success",
},
[_vm._v(_vm._s(_vm.$t("Paid")))]
)
: _vm.purchase.payment_status == "partial"
? _c(
"span",
{
staticClass:
"badge badge-outline-primary",
},
[_vm._v(_vm._s(_vm.$t("partial")))]
)
: _c(
"span",
{
staticClass:
"badge badge-outline-warning",
},
[_vm._v(_vm._s(_vm.$t("Unpaid")))]
),
]),
]
),
],
1
),
_vm._v(" "),
_c(
"b-row",
{ staticClass: "mt-3" },
[
_c("b-col", { attrs: { md: "12" } }, [
_c("h5", { staticClass: "font-weight-bold" }, [
_vm._v(_vm._s(_vm.$t("Order_Summary"))),
]),
_vm._v(" "),
_c("div", { staticClass: "table-responsive" }, [
_c(
"table",
{ staticClass: "table table-hover table-md" },
[
_c("thead", { staticClass: "bg-gray-300" }, [
_c("tr", [
_c("th", { attrs: { scope: "col" } }, [
_vm._v(_vm._s(_vm.$t("ProductName"))),
]),
_vm._v(" "),
_c("th", { attrs: { scope: "col" } }, [
_vm._v(_vm._s(_vm.$t("Net_Unit_Cost"))),
]),
_vm._v(" "),
_c("th", { attrs: { scope: "col" } }, [
_vm._v(_vm._s(_vm.$t("Quantity"))),
]),
_vm._v(" "),
_c("th", { attrs: { scope: "col" } }, [
_vm._v(_vm._s(_vm.$t("Unitcost"))),
]),
_vm._v(" "),
_c("th", { attrs: { scope: "col" } }, [
_vm._v(_vm._s(_vm.$t("Discount"))),
]),
_vm._v(" "),
_c("th", { attrs: { scope: "col" } }, [
_vm._v(_vm._s(_vm.$t("Tax"))),
]),
_vm._v(" "),
_c("th", { attrs: { scope: "col" } }, [
_vm._v(_vm._s(_vm.$t("SubTotal"))),
]),
]),
]),
_vm._v(" "),
_c(
"tbody",
_vm._l(_vm.details, function (detail) {
return _c("tr", [
_c("td", [
_c("span", [
_vm._v(
_vm._s(detail.code) +
" (" +
_vm._s(detail.name) +
")"
),
]),
_vm._v(" "),
_c(
"p",
{
directives: [
{
name: "show",
rawName: "v-show",
value:
detail.is_imei &&
detail.imei_number !== null,
expression:
"detail.is_imei && detail.imei_number !==null ",
},
],
},
[
_vm._v(
_vm._s(_vm.$t("IMEI_SN")) +
" : " +
_vm._s(detail.imei_number)
),
]
),
_vm._v(" "),
_c(
"p",
{
directives: [
{
name: "show",
rawName: "v-show",
value:
detail.serial_expires &&
typeof detail
.serial_expires[
"serials"
] != undefined &&
Array.isArray(
detail.serial_expires[
"serials"
]
),
expression:
"detail.serial_expires && typeof detail.serial_expires['serials'] != undefined && Array.isArray(detail.serial_expires['serials'])",
},
],
},
_vm._l(
detail.serial_expires["serials"],
function (serialExpires, index) {
return _c("span", [
_vm._v(
"\n " +
_vm._s(serialExpires) +
_vm._s(
detail.serial_expires[
"expiry"
][index]
? " : " +
detail
.serial_expires[
"expiry"
][index]
: ""
) +
",\n "
),
])
}
),
0
),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(
_vm.formatNumber(
detail.Net_cost,
3
)
)
),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(
_vm.formatNumber(
detail.quantity,
2
)
) +
" " +
_vm._s(detail.unit_purchase)
),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(
_vm.formatNumber(detail.cost, 2)
)
),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(
_vm.formatNumber(
detail.DiscountNet,
2
)
)
),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(
_vm.formatNumber(detail.taxe, 2)
)
),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(detail.total.toFixed(2))
),
]),
])
}),
0
),
]
),
]),
]),
_vm._v(" "),
_c(
"div",
{ staticClass: "offset-md-9 col-md-3 mt-4" },
[
_c(
"table",
{ staticClass: "table table-striped table-sm" },
[
_c("tbody", [
_c("tr", [
_c("td", { staticClass: "bold" }, [
_vm._v(_vm._s(_vm.$t("OrderTax"))),
]),
_vm._v(" "),
_c("td", [
_c("span", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(
_vm.purchase.TaxNet.toFixed(2)
) +
" (" +
_vm._s(
_vm.formatNumber(
_vm.purchase.tax_rate,
2
)
) +
" %)"
),
]),
]),
]),
_vm._v(" "),
_c("tr", [
_c("td", { staticClass: "bold" }, [
_vm._v(_vm._s(_vm.$t("Discount"))),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(
_vm.purchase.discount.toFixed(2)
)
),
]),
]),
_vm._v(" "),
_c("tr", [
_c("td", { staticClass: "bold" }, [
_vm._v(_vm._s(_vm.$t("Shipping"))),
]),
_vm._v(" "),
_c("td", [
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(
_vm.purchase.shipping.toFixed(2)
)
),
]),
]),
_vm._v(" "),
_c("tr", [
_c("td", [
_c(
"span",
{ staticClass: "font-weight-bold" },
[_vm._v(_vm._s(_vm.$t("Total")))]
),
]),
_vm._v(" "),
_c("td", [
_c(
"span",
{ staticClass: "font-weight-bold" },
[
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(_vm.purchase.GrandTotal)
),
]
),
]),
]),
_vm._v(" "),
_c("tr", [
_c("td", [
_c(
"span",
{ staticClass: "font-weight-bold" },
[_vm._v(_vm._s(_vm.$t("Paid")))]
),
]),
_vm._v(" "),
_c("td", [
_c(
"span",
{ staticClass: "font-weight-bold" },
[
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(_vm.purchase.paid_amount)
),
]
),
]),
]),
_vm._v(" "),
_c("tr", [
_c("td", [
_c(
"span",
{ staticClass: "font-weight-bold" },
[_vm._v(_vm._s(_vm.$t("Due")))]
),
]),
_vm._v(" "),
_c("td", [
_c(
"span",
{ staticClass: "font-weight-bold" },
[
_vm._v(
_vm._s(_vm.currentUser.currency) +
" " +
_vm._s(_vm.purchase.due)
),
]
),
]),
]),
]),
]
),
]
),
],
1
),
_vm._v(" "),
_c("hr", {
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.purchase.note,
expression: "purchase.note",
},
],
}),
_vm._v(" "),
_c(
"b-row",
{ staticClass: "mt-4" },
[
_c("b-col", { attrs: { md: "12" } }, [
_c("p", [_vm._v(_vm._s(_vm.purchase.note))]),
]),
],
1
),
],
1
),
]
),
],
1
)
: _vm._e(),
],
1
)
}
var staticRenderFns = []
render._withStripped = true
/***/ })
}]); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]-- |